package com.damionew.website.model.back;

import java.util.List;

import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;

public class Role {
	private Integer role_id;// 编号
	private String role;// 角色标识程序中判断使用，如“admin",这个是唯一的
	private String description;// 角色描述，UI界面显示使用
	private List<User> user;// 一个角色对应多个用户
	private List<Member_Role> member_roles;
	private List<Role_Permission> role_permissions;

	public Integer getRole_id() {
		return role_id;
	}

	public void setRole_id(Integer role_id) {
		this.role_id = role_id;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<User> getUser() {
		return user;
	}

	public void setUser(List<User> user) {
		this.user = user;
	}


	public List<Member_Role> getMember_roles() {
	    return member_roles;
	}

	public void setMember_roles(List<Member_Role> member_roles) {
	    this.member_roles = member_roles;
	}

	public List<Role_Permission> getRole_permissions() {
		return role_permissions;
	}

	public void setRole_permissions(List<Role_Permission> role_permissions) {
		this.role_permissions = role_permissions;
	}

}
